import React, { useState } from 'react'
import { Popup, Cell } from 'react-vant';
function Mypop(props) {
    console.log(props);
    const [visible, setVisible] = useState(false)
    return (
        <div>
            <Popup visible={props.open} onClose={() => props.openclose(false)}>
                <div style={{ padding: '30px 50px' }}>
                    <h4>口味</h4>
                    {
                        props.infoobj.flavor && props.infoobj.flavor.length ?props.infoobj.flavor.map((item,idnex)=>{
                            return <span key={idnex}>{item.flavor}</span>
                        }):""
                    }
                </div>
            </Popup>
        </div>
    )
}

export default Mypop